<?php
return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=CS-iris',
            'username' => 'root',
            'password' => 'l9851223',
            'charset' => 'utf8',
            'tablePrefix' => 'yy_',
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@app/mailer',
            'useFileTransport' => false,
            'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => 'smtp.exmail.qq.com',
                'username' => 'support@hangyutech.com',
                'password' => 'Hangyutech12',
                'port' => '465',
                'encryption' => 'ssl',
                ],
                'messageConfig'=>[
                   'charset'=>'UTF-8',
                   'from'=>['support@hangyutech.com'=>'admin']
                   ],
        ],

        // 'mailer' => [
        //     'class' => 'yii\swiftmailer\Mailer',
        //     'viewPath' => '@common/mail',
        // ],
    ],
];
